import { post, get, put } from "@/request";

interface LoginBody {
  username: string;
  password: string;
}
interface LoginResponse {
  code: number;
  data: string;
  msg: string;
}
//示例
export const signIn = async (options: LoginBody): Promise<LoginResponse> => {
  return post<LoginResponse>("/auth/login", options);
};
export const logout = async (): Promise<LoginResponse> => {
  return post<LoginResponse>("/auth/logout");
};
